﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="Manage_Member_List" %>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" type="text/css" />
    <title>服务器列表</title>
</head>
<body>
<%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
<div class="column">
    <div class="columntitle">用户管理</div>
	<table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" id="MyDataGrid" style="border-width:0px;width:100%;border-collapse:collapse;">
	<tr class="summary-title" style="height:25px;">
		<td align="center">用户名</td>
		<td>用户组</td>
		<td>Email</td>
		<td>创建时间</td>
		<td>登陆次数</td>
		<td>最后登录时间</td>
		<td>帐户状态</td>
		<td align="center">操作</td>
	</tr>
	<%
        foreach (KeRui.Model.Member model in listMember)
    {
	%>
	<tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height:25px;">
		<td align="center"> <b><%=model.Username %></b></td>
		<td><%=model.GroupName%></td>
		<td><%=model.Email%></td>
		<td><%=model.CreateTime%></td>
		<td><%=model.LoginTimes%></td>
		<td><%=model.LastLoginTime%></td>
		<td><%=model.State.ToString().Replace("1", "正常").Replace("0", "<font style='color:red'>锁定</font>")%></td>
		
		
		<td align="center" style="width:120px;">
		<a href='item.aspx?act=edit&id=<%=model.UserID %>' >修改</a> | 
		<a href='item.aspx?act=state&st=<%=model.State%>&id=<%=model.UserID %>' onClick="javascript:return confirm('此操作将会<%= model.State==0?"解锁":"锁定"%>用户“<%=model.Username %>”，确认吗？');"><%= model.State == 1 ? "<font style='color:red'>锁定</font>" : "解锁"%></a> | 
		    <a href='item.aspx?id=<%=model.UserID %>&act=del' onClick="javascript:return confirm('此操作将会删除用户“<%=model.Username %>”，确认吗？');">删除</a></td>
	</tr>
	<%
	} 
	%>
    </table>	
</div>
</body>
</html>
